import axios from "axios";

axios.defaults.baseURL = 'http://127.0.0.1:3000'

const fun = {
    examlogin: async(name, card, tid) => {
        const {data: {code, sid}} = await axios.post('/zxr/examlogin', {name, card, tid})
        if(code === 201){
            return {state: true, sid}
        }else{
            return {state: false}
        }
    }
}

export default fun